import request from '@/utils/request'

// 查询发票凭证模版列表
export function getTemplateDetail(query) {
  return request({
    url: '/invoice/invoice_template/getTemplateDetail/'+ query,
    method: 'get'
  })
}
// 查询发票凭证模版列表
export function listInvoice_template(query) {
  return request({
    url: '/invoice/invoice_template/list',
    method: 'get',
    params: query
  })
}
export function getSelectAll() {
  return request({
    url: '/invoice/invoice_template/getSelectAll',
    method: 'get'
  })
}

// 查询发票凭证模版详细
export function getInvoice_template(templateId) {
  return request({
    url: '/invoice/invoice_template/' + templateId,
    method: 'get'
  })
}

// 新增发票凭证模版
export function addInvoice_template(data) {
  return request({
    url: '/invoice/invoice_template',
    method: 'post',
    data: data
  })
}

// 修改发票凭证模版
export function updateInvoice_template(data) {
  return request({
    url: '/invoice/invoice_template',
    method: 'put',
    data: data
  })
}

// 删除发票凭证模版
export function delInvoice_template(templateId) {
  return request({
    url: '/invoice/invoice_template/' + templateId,
    method: 'delete'
  })
}
